package com.richard.base.starter

import com.richard.base.net.common.NetComponent
import com.richard.base.route.KsRouterHelper
import com.wxy.appstartfaster.task.AppStartTask

/**
 ***************************************
 * 项目名称:KsLightLearn
 * @Author wuzhiguo
 * 邮箱：wuzhiguo@ksjgs.com
 * 创建时间: 2020/6/3     11:22 AM
 * 用途:
 ***************************************

 */

class InitNetComponentTask :AppStartTask(){
    override fun run() {
        initNetComponents()
    }

    override fun isRunOnMainThread(): Boolean {
        return false
    }

    /**
     * 对网络组件进行初始化
     */
    private fun initNetComponents() {
        NetComponent.init()
    }

    override fun getDependsTaskList(): MutableList<Class<out AppStartTask>> {
        return mutableListOf(InitArouterTask::class.java)
    }




}